#pragma once

#include<iostream>

using namespace std;

#define MAXL 50

typedef int KeyType;
typedef char InfoType;
struct RecType
{
	KeyType key;
	InfoType data;
};

void CreateList(RecType R[], KeyType keys[], int n);
void DispList(RecType R[], int n);

void CreateList(RecType R[], KeyType keys[], int n)
{
	for (int i = 0; i < n; i++)
	{
		R[i].key = keys[i];
	}
}

void DispList(RecType R[], int n)
{
	for (int i = 0; i < n; i++)
	{
		cout << R[i].key << " ";
	}
	cout << endl;
}